package com.yx.xinruitu.entity;

import java.io.Serializable;

/**
 * null
 *
 * @TableName staff
 */
public class Staff implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     *
     */
    private Integer id;
    /**
     *
     */
    private String name;
    /**
     *
     */
    private String phone;
    /**
     *
     */
    private String company;
    /**
     * 单位id
     */
    private Integer deptId;
    /**
     * 注册时间
     */
    private String registerTime;
    /**
     * 是否答题（0未答题 1已答题）
     */
    private Byte isExam;
    /**
     * 最终得分
     */
    private Byte score;
    /**
     * 答题时间
     */
    private String examTime;
    /**
     * 答题用时
     */
    private String useTime;
    /**
     *
     */
    private String openId;
    /**
     * 是否完成绑定
     */
    private String isCompletion;
    /**
     * 初赛答题次数<=2
     */
    private Integer csCount;
    /**
     * 复赛答题次数<=2
     */
    private Integer fsCount;
    /**
     * 是否晋级0 未晋级 1晋级
     */
    private Integer isJj;

    /**
     *
     */
    public Integer getId() {
        return id;
    }

    /**
     *
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     *
     */
    public String getName() {
        return name;
    }

    /**
     *
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     *
     */
    public String getPhone() {
        return phone;
    }

    /**
     *
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     *
     */
    public String getCompany() {
        return company;
    }

    /**
     *
     */
    public void setCompany(String company) {
        this.company = company;
    }

    /**
     * 单位id
     */
    public Integer getDeptId() {
        return deptId;
    }

    /**
     * 单位id
     */
    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    /**
     * 注册时间
     */
    public String getRegisterTime() {
        return registerTime;
    }

    /**
     * 注册时间
     */
    public void setRegisterTime(String registerTime) {
        this.registerTime = registerTime;
    }

    /**
     * 是否答题（0未答题 1已答题）
     */
    public Byte getIsExam() {
        return isExam;
    }

    /**
     * 是否答题（0未答题 1已答题）
     */
    public void setIsExam(Byte isExam) {
        this.isExam = isExam;
    }

    /**
     * 最终得分
     */
    public Byte getScore() {
        return score;
    }

    /**
     * 最终得分
     */
    public void setScore(Byte score) {
        this.score = score;
    }

    /**
     * 答题时间
     */
    public String getExamTime() {
        return examTime;
    }

    /**
     * 答题时间
     */
    public void setExamTime(String examTime) {
        this.examTime = examTime;
    }

    /**
     * 答题用时
     */
    public String getUseTime() {
        return useTime;
    }

    /**
     * 答题用时
     */
    public void setUseTime(String useTime) {
        this.useTime = useTime;
    }

    /**
     *
     */
    public String getOpenId() {
        return openId;
    }

    /**
     *
     */
    public void setOpenId(String openId) {
        this.openId = openId;
    }

    /**
     * 是否完成绑定
     */
    public String getIsCompletion() {
        return isCompletion;
    }

    /**
     * 是否完成绑定
     */
    public void setIsCompletion(String isCompletion) {
        this.isCompletion = isCompletion;
    }

    /**
     * 初赛答题次数<=2
     */
    public Integer getCsCount() {
        return csCount;
    }

    /**
     * 初赛答题次数<=2
     */
    public void setCsCount(Integer csCount) {
        this.csCount = csCount;
    }

    /**
     * 复赛答题次数<=2
     */
    public Integer getFsCount() {
        return fsCount;
    }

    /**
     * 复赛答题次数<=2
     */
    public void setFsCount(Integer fsCount) {
        this.fsCount = fsCount;
    }

    /**
     * 是否晋级0 未晋级 1晋级
     */
    public Integer getIsJj() {
        return isJj;
    }

    /**
     * 是否晋级0 未晋级 1晋级
     */
    public void setIsJj(Integer isJj) {
        this.isJj = isJj;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Staff other = (Staff) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
                && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
                && (this.getCompany() == null ? other.getCompany() == null : this.getCompany().equals(other.getCompany()))
                && (this.getDeptId() == null ? other.getDeptId() == null : this.getDeptId().equals(other.getDeptId()))
                && (this.getRegisterTime() == null ? other.getRegisterTime() == null : this.getRegisterTime().equals(other.getRegisterTime()))
                && (this.getIsExam() == null ? other.getIsExam() == null : this.getIsExam().equals(other.getIsExam()))
                && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(other.getScore()))
                && (this.getExamTime() == null ? other.getExamTime() == null : this.getExamTime().equals(other.getExamTime()))
                && (this.getUseTime() == null ? other.getUseTime() == null : this.getUseTime().equals(other.getUseTime()))
                && (this.getOpenId() == null ? other.getOpenId() == null : this.getOpenId().equals(other.getOpenId()))
                && (this.getIsCompletion() == null ? other.getIsCompletion() == null : this.getIsCompletion().equals(other.getIsCompletion()))
                && (this.getCsCount() == null ? other.getCsCount() == null : this.getCsCount().equals(other.getCsCount()))
                && (this.getFsCount() == null ? other.getFsCount() == null : this.getFsCount().equals(other.getFsCount()))
                && (this.getIsJj() == null ? other.getIsJj() == null : this.getIsJj().equals(other.getIsJj()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getCompany() == null) ? 0 : getCompany().hashCode());
        result = prime * result + ((getDeptId() == null) ? 0 : getDeptId().hashCode());
        result = prime * result + ((getRegisterTime() == null) ? 0 : getRegisterTime().hashCode());
        result = prime * result + ((getIsExam() == null) ? 0 : getIsExam().hashCode());
        result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
        result = prime * result + ((getExamTime() == null) ? 0 : getExamTime().hashCode());
        result = prime * result + ((getUseTime() == null) ? 0 : getUseTime().hashCode());
        result = prime * result + ((getOpenId() == null) ? 0 : getOpenId().hashCode());
        result = prime * result + ((getIsCompletion() == null) ? 0 : getIsCompletion().hashCode());
        result = prime * result + ((getCsCount() == null) ? 0 : getCsCount().hashCode());
        result = prime * result + ((getFsCount() == null) ? 0 : getFsCount().hashCode());
        result = prime * result + ((getIsJj() == null) ? 0 : getIsJj().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", phone=").append(phone);
        sb.append(", company=").append(company);
        sb.append(", deptId=").append(deptId);
        sb.append(", registerTime=").append(registerTime);
        sb.append(", isExam=").append(isExam);
        sb.append(", score=").append(score);
        sb.append(", examTime=").append(examTime);
        sb.append(", useTime=").append(useTime);
        sb.append(", openId=").append(openId);
        sb.append(", isCompletion=").append(isCompletion);
        sb.append(", csCount=").append(csCount);
        sb.append(", fsCount=").append(fsCount);
        sb.append(", isJj=").append(isJj);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}